package com.gln.bloger.dao.impl;

import java.util.List;

import com.gln.bloger.dao.RoleDao;
import com.gln.bloger.exception.BlogerException;
import com.gln.bloger.pojos.Role;

public class RoleDaoImpl extends BaseDaoImpl<Role> implements RoleDao{

	/**
	 * get all role
	 * @throws BlogerException
	 * @return List<Role>
	 */
	@SuppressWarnings("unchecked")
	public List<Role> getRoles() throws BlogerException {
		return (List<Role>)getHibernateTemplate().loadAll(Role.class);
	}

}
